package com.ojoin.trade.supplyloan_core.web.domain;

import java.io.Serializable;
import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ojoin.trade.common.utils.json.selfDefineBankMaskSerializer;
import com.ojoin.trade.common.web.domain.IDentifiable;

public class TbSlBankacc implements IDentifiable, Serializable {
    private Integer id;

    private Integer idOfTbMerchantUser;
    
    @NotBlank(message="银行分行不能为空")
    private String unionBankNo;
    
    public String getUnionBankNo() {
		return unionBankNo;
	}

	public void setUnionBankNo(String unionBankNo) {
		this.unionBankNo = unionBankNo;
	}

	private String displayBranchNo;

    public String getDisplayBranchNo() {
		return displayBranchNo;
	}

	public void setDisplayBranchNo(String displayBranchNo) {
		this.displayBranchNo = displayBranchNo;
	}

	@JsonSerialize(using = selfDefineBankMaskSerializer.class)
	@NotBlank(message="卡号不能为空")
    private String bankacc;

    private Date rowUpdateTime;

    private Date rowCreateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getIdOfTbMerchantUser() {
        return idOfTbMerchantUser;
    }

    public void setIdOfTbMerchantUser(Integer idOfTbMerchantUser) {
        this.idOfTbMerchantUser = idOfTbMerchantUser;
    }

    public String getBankacc() {
        return bankacc;
    }

    public void setBankacc(String bankacc) {
        this.bankacc = bankacc == null ? null : bankacc.trim();
    }

    public Date getRowUpdateTime() {
        return rowUpdateTime;
    }

    public void setRowUpdateTime(Date rowUpdateTime) {
        this.rowUpdateTime = rowUpdateTime;
    }

    public Date getRowCreateTime() {
        return rowCreateTime;
    }

    public void setRowCreateTime(Date rowCreateTime) {
        this.rowCreateTime = rowCreateTime;
    }
    
    @Override
	public String getTableName() {
		return "tb_sl_bankacc";
	}
}